// AdminStatisticsServiceImpl.java
package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.AdminStatisticsMapper;
import com.scuec.groupfive.service.AdminStatisticsService;
import com.scuec.groupfive.vo.AdminUserStatisticsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminStatisticsServiceImpl implements AdminStatisticsService {

    private final AdminStatisticsMapper adminStatisticsMapper;

    @Autowired
    public AdminStatisticsServiceImpl(AdminStatisticsMapper adminStatisticsMapper) {
        this.adminStatisticsMapper = adminStatisticsMapper;
    }

    @Override
    public AdminUserStatisticsVO getUserStatistics(Long userId) {
        return adminStatisticsMapper.getUserStatistics(userId);
    }
}